import { createI18n } from 'vue-i18n'
import zhCn from './zh-cn'
import en from './en'
import zhCt from './zh-ct'
 //import locale from 'element-plus/lib/locale'
// import localeZH from 'element-plus/lib/locale/lang/zh-cn'
// import localeEN from 'element-plus/lib/locale/lang/en'
// import localePL from 'element-plus/lib/locale/lang/zh-tw'
// 创建 i18n
const i18n = createI18n({
  legacy: false,
  globalInjection: true, // 全局模式，可以直接使用 $t
  locale: 'en',
  messages: {
    zhCn,
    en,
    zhCt
  }
})

export default i18n